import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/Index'
import List from '@/views/List'
import order from '@/views/order'
import my from '@/views/my'
import particulars from '@/views/particulars'
import sp from '@/views/sp'
import pj from '@/views/pj'
import dp from '@/views/dp'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Index
    },
    {
      path: '/index',
      component: Index
    },
    {
      path: '/list',
      component: List
    },
    {
      path: '/order',
      component: order
    },
    {
      path: '/my',
      component: my
    },
    {
      path: '/particulars',
      component: particulars,
      children: [
        {
          path: '/',
          component: sp
        },
        {
          path: '/sp',
          component: sp
        },
        {
          path: '/pj',
          component: pj
        },
        {
          path: '/dp',
          component: dp
        }
      ]
    }
  ]
})
